<template>
    <el-checkbox-group v-bind="$attrs" @input="$emit('input', $event)">
		<template v-for="item in list">
        <el-checkbox :label="item.value">{{ item.label }}</el-checkbox>
		</template>
    </el-checkbox-group>
</template>

<script>
export default {
    name: "checkboxOption",
    props: {
        list: {
            type: Array,
            default: () => {
				return [
					{
						label: '是',
						value: 1
					},
					{
						label: '否',
						value: 2
					}
				];
            }
        },
    },
}
</script>

<style scoped>

</style>